package com.sunlake.spring.main.common.model.file.mapper;

import com.sunlake.spring.main.model.counselor.po.FilesPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 22530
* @description 针对表【files】的数据库操作Mapper
* @createDate 2025-11-03 18:51:15
* @Entity generator.domain.Files
*/
@Mapper
public interface FilesMapper {

    int deleteByPrimaryKey(Long id);

    int insert(FilesPO record);

    int insertSelective(FilesPO record);

    FilesPO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FilesPO record);

    int updateByPrimaryKey(FilesPO record);

    /**
     * 根据上传用户 id 查询文件
     * @param uploaderId 上传用户 id
     * @return 文件列表
     */
    FilesPO selectByUploaderId(@Param("uploaderId") Long uploaderId);

}
